package cn.creditease.std.config;

/**
 * @Description:
 * @Author: kai.yang
 * @Date: 2019-08-08 09:59
 */
public class JobConsumerConfig {

    /**
     * 单个job最大可以分发单任务数，建议值=服务器个数*每台的最大并发数
     */
    int maxJobCount = 15;

    /**
     * 单个job在一台服务上，最大并发执行大消费者数
     */
    int MaxConsumerCountByJobGroupPerServer = 5;


    public int getMaxJobCount() {
        return maxJobCount;
    }

    public JobConsumerConfig setMaxJobCount(int maxJobCount) {
        this.maxJobCount = maxJobCount;
        return this;
    }

    public int getMaxConsumerCountByJobGroupPerServer() {
        return MaxConsumerCountByJobGroupPerServer;
    }

    public JobConsumerConfig setMaxConsumerCountByJobGroupPerServer(int maxConsumerCountByJobGroupPerServer) {
        MaxConsumerCountByJobGroupPerServer = maxConsumerCountByJobGroupPerServer;
        return this;
    }
}
